import request from "@/utils/request"

const url = '/system/group'

export function groupLists(params) {
  return request({
    url,
    method: 'get',
    params
  })
}

export function groupCreate(data) {
  return request({
    url,
    method: 'POST',
    data
  })
}

export function groupUpdate(data) {
  return request({
    url,
    method: "PUT",
    data
  })
}

export function groupView(id) {
  return request({
    url: `${url}/${id}`,
    method: 'GET',
  })
}

export function groupDelete(ids) {
  return request({
    url: `${url}/${ids}`,
    method: 'DELETE'
  })
}
